<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CUDNN Frontend API: nlohmann::detail::parse_error Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CUDNN Frontend API
   &#160;<span id="projectnumber">8.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d5/d1a/classnlohmann_1_1detail_1_1parse__error.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="../../df/d69/classnlohmann_1_1detail_1_1parse__error-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">nlohmann::detail::parse_error Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>exception indicating a parse error  
 <a href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for nlohmann::detail::parse_error:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d0c/classnlohmann_1_1detail_1_1parse__error__inherit__graph.png" border="0" usemap="#nlohmann_1_1detail_1_1parse__error_inherit__map" alt="Inheritance graph"/></div>
<map name="nlohmann_1_1detail_1_1parse__error_inherit__map" id="nlohmann_1_1detail_1_1parse__error_inherit__map">
<area shape="rect" id="node2" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html" title="general exception of the basic_json class " alt="" coords="5,131,187,267"/>
<area shape="rect" id="node3" title="STL class. " alt="" coords="44,5,148,83"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for nlohmann::detail::parse_error:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d5d/classnlohmann_1_1detail_1_1parse__error__coll__graph.png" border="0" usemap="#nlohmann_1_1detail_1_1parse__error_coll__map" alt="Collaboration graph"/></div>
<map name="nlohmann_1_1detail_1_1parse__error_coll__map" id="nlohmann_1_1detail_1_1parse__error_coll__map">
<area shape="rect" id="node2" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html" title="general exception of the basic_json class " alt="" coords="51,272,232,393"/>
<area shape="rect" id="node3" title="STL class. " alt="" coords="5,5,109,83"/>
<area shape="rect" id="node4" title="STL class. " alt="" coords="79,132,203,209"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ae77bd584cb9101140790219af7fec1ce"><td class="memTemplParams" colspan="2">template&lt;typename BasicJsonType &gt; </td></tr>
<tr class="memitem:ae77bd584cb9101140790219af7fec1ce"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html">parse_error</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html#ae77bd584cb9101140790219af7fec1ce">create</a> (int id_, const <a class="el" href="../../d6/d02/structnlohmann_1_1detail_1_1position__t.html">position_t</a> &amp;pos, const <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;what_arg, const BasicJsonType &amp;context)</td></tr>
<tr class="memdesc:ae77bd584cb9101140790219af7fec1ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">create a parse error exception  <a href="#ae77bd584cb9101140790219af7fec1ce">More...</a><br /></td></tr>
<tr class="separator:ae77bd584cb9101140790219af7fec1ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90fbaaeeb00838e65b8d04885017ef0c"><td class="memTemplParams" colspan="2">template&lt;typename BasicJsonType &gt; </td></tr>
<tr class="memitem:a90fbaaeeb00838e65b8d04885017ef0c"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html">parse_error</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html#a90fbaaeeb00838e65b8d04885017ef0c">create</a> (int id_, std::size_t byte_, const <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;what_arg, const BasicJsonType &amp;context)</td></tr>
<tr class="separator:a90fbaaeeb00838e65b8d04885017ef0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a9505aaa1ca943be927eec7cc579592ff"><td class="memItemLeft" align="right" valign="top">const std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html#a9505aaa1ca943be927eec7cc579592ff">byte</a></td></tr>
<tr class="memdesc:a9505aaa1ca943be927eec7cc579592ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">byte index of the parse error  <a href="#a9505aaa1ca943be927eec7cc579592ff">More...</a><br /></td></tr>
<tr class="separator:a9505aaa1ca943be927eec7cc579592ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classnlohmann_1_1detail_1_1exception"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classnlohmann_1_1detail_1_1exception')"><img src="../../closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html">nlohmann::detail::exception</a></td></tr>
<tr class="memitem:a0d4589a3fb54e81646d986c05efa3b9a inherit pub_attribs_classnlohmann_1_1detail_1_1exception"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#a0d4589a3fb54e81646d986c05efa3b9a">id</a></td></tr>
<tr class="memdesc:a0d4589a3fb54e81646d986c05efa3b9a inherit pub_attribs_classnlohmann_1_1detail_1_1exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">the id of the exception  <a href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#a0d4589a3fb54e81646d986c05efa3b9a">More...</a><br /></td></tr>
<tr class="separator:a0d4589a3fb54e81646d986c05efa3b9a inherit pub_attribs_classnlohmann_1_1detail_1_1exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a0ea816ea3521d7109407948cb1b850f7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html#a0ea816ea3521d7109407948cb1b850f7">parse_error</a> (int id_, std::size_t byte_, const char *what_arg)</td></tr>
<tr class="separator:a0ea816ea3521d7109407948cb1b850f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:aefe74adeaa48781464ba2fd2ec63d221"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html#aefe74adeaa48781464ba2fd2ec63d221">position_string</a> (const <a class="el" href="../../d6/d02/structnlohmann_1_1detail_1_1position__t.html">position_t</a> &amp;pos)</td></tr>
<tr class="separator:aefe74adeaa48781464ba2fd2ec63d221"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_methods_classnlohmann_1_1detail_1_1exception"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnlohmann_1_1detail_1_1exception')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html">nlohmann::detail::exception</a></td></tr>
<tr class="memitem:a0672c25ecdf14d1a071d4d6478a65af0 inherit pub_methods_classnlohmann_1_1detail_1_1exception"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#a0672c25ecdf14d1a071d4d6478a65af0">what</a> () const noexcept override</td></tr>
<tr class="memdesc:a0672c25ecdf14d1a071d4d6478a65af0 inherit pub_methods_classnlohmann_1_1detail_1_1exception"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the explanatory string  <a href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#a0672c25ecdf14d1a071d4d6478a65af0">More...</a><br /></td></tr>
<tr class="separator:a0672c25ecdf14d1a071d4d6478a65af0 inherit pub_methods_classnlohmann_1_1detail_1_1exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classnlohmann_1_1detail_1_1exception"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classnlohmann_1_1detail_1_1exception')"><img src="../../closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html">nlohmann::detail::exception</a></td></tr>
<tr class="memitem:ae323ad0d53bc724414c2233164e65657 inherit pro_methods_classnlohmann_1_1detail_1_1exception"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#ae323ad0d53bc724414c2233164e65657">exception</a> (int id_, const char *what_arg)</td></tr>
<tr class="separator:ae323ad0d53bc724414c2233164e65657 inherit pro_methods_classnlohmann_1_1detail_1_1exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_static_methods_classnlohmann_1_1detail_1_1exception"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classnlohmann_1_1detail_1_1exception')"><img src="../../closed.png" alt="-"/>&#160;Static Protected Member Functions inherited from <a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html">nlohmann::detail::exception</a></td></tr>
<tr class="memitem:abf41a7e9178356314082284e6cfea278 inherit pro_static_methods_classnlohmann_1_1detail_1_1exception"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#abf41a7e9178356314082284e6cfea278">name</a> (const <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;ename, int id_)</td></tr>
<tr class="separator:abf41a7e9178356314082284e6cfea278 inherit pro_static_methods_classnlohmann_1_1detail_1_1exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa353a7dba4fd179f7224b8a2a238a264 inherit pro_static_methods_classnlohmann_1_1detail_1_1exception"><td class="memTemplParams" colspan="2">template&lt;typename BasicJsonType &gt; </td></tr>
<tr class="memitem:aa353a7dba4fd179f7224b8a2a238a264 inherit pro_static_methods_classnlohmann_1_1detail_1_1exception"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html#aa353a7dba4fd179f7224b8a2a238a264">diagnostics</a> (const BasicJsonType &amp;leaf_element)</td></tr>
<tr class="separator:aa353a7dba4fd179f7224b8a2a238a264 inherit pro_static_methods_classnlohmann_1_1detail_1_1exception"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>exception indicating a parse error </p>
<p>This exception is thrown by the library when a parse error occurs. Parse errors can occur during the deserialization of JSON text, CBOR, MessagePack, as well as when using JSON Patch.</p>
<p>Member <em>byte</em> holds the byte index of the last read character in the input file.</p>
<p>Exceptions have ids 1xx.</p>
<table class="doxtable">
<tr>
<th>name / id </th><th>example message </th><th>description  </th></tr>
<tr>
<td>json.exception.parse_error.101 </td><td>parse error at 2: unexpected end of input; expected string literal </td><td>This error indicates a syntax error while deserializing a JSON text. The error message describes that an unexpected token (character) was encountered, and the member <em>byte</em> indicates the error position. </td></tr>
<tr>
<td>json.exception.parse_error.102 </td><td>parse error at 14: missing or wrong low surrogate </td><td>JSON uses the <code>\uxxxx</code> format to describe Unicode characters. Code points above above 0xFFFF are split into two <code>\uxxxx</code> entries ("surrogate pairs"). This error indicates that the surrogate pair is incomplete or contains an invalid code point. </td></tr>
<tr>
<td>json.exception.parse_error.103 </td><td>parse error: code points above 0x10FFFF are invalid </td><td>Unicode supports code points up to 0x10FFFF. Code points above 0x10FFFF are invalid. </td></tr>
<tr>
<td>json.exception.parse_error.104 </td><td>parse error: JSON patch must be an array of objects </td><td><a href="https://tools.ietf.org/html/rfc6902">RFC 6902</a> requires a JSON Patch document to be a JSON document that represents an array of objects. </td></tr>
<tr>
<td>json.exception.parse_error.105 </td><td>parse error: operation must have string member 'op' </td><td>An operation of a JSON Patch document must contain exactly one "op" member, whose value indicates the operation to perform. Its value must be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors. </td></tr>
<tr>
<td>json.exception.parse_error.106 </td><td>parse error: array index '01' must not begin with '0' </td><td>An array index in a JSON Pointer (<a href="https://tools.ietf.org/html/rfc6901">RFC 6901</a>) may be <code>0</code> or any number without a leading <code>0</code>. </td></tr>
<tr>
<td>json.exception.parse_error.107 </td><td>parse error: JSON pointer must be empty or begin with '/' - was: 'foo' </td><td>A JSON Pointer must be a Unicode string containing a sequence of zero or more reference tokens, each prefixed by a <code>/</code> character. </td></tr>
<tr>
<td>json.exception.parse_error.108 </td><td>parse error: escape character '~' must be followed with '0' or '1' </td><td>In a JSON Pointer, only <code>~0</code> and <code>~1</code> are valid escape sequences. </td></tr>
<tr>
<td>json.exception.parse_error.109 </td><td>parse error: array index 'one' is not a number </td><td>A JSON Pointer array index must be a number. </td></tr>
<tr>
<td>json.exception.parse_error.110 </td><td>parse error at 1: cannot read 2 bytes from vector </td><td>When parsing CBOR or MessagePack, the byte vector ends before the complete value has been read. </td></tr>
<tr>
<td>json.exception.parse_error.112 </td><td>parse error at 1: error reading CBOR; last byte: 0xF8 </td><td>Not all types of CBOR or MessagePack are supported. This exception occurs if an unsupported byte was read. </td></tr>
<tr>
<td>json.exception.parse_error.113 </td><td>parse error at 2: expected a CBOR string; last byte: 0x98 </td><td>While parsing a map key, a value that is not a string has been read. </td></tr>
<tr>
<td>json.exception.parse_error.114 </td><td>parse error: Unsupported BSON record type 0x0F </td><td>The parsing of the corresponding BSON record type is not implemented (yet). </td></tr>
<tr>
<td>json.exception.parse_error.115 </td><td>parse error at byte 5: syntax error while parsing UBJSON high-precision number: invalid number text: 1A </td><td>A UBJSON high-precision number could not be parsed. </td></tr>
</table>
<dl class="section note"><dt>Note</dt><dd>For an input with n bytes, 1 is the index of the first character and n+1 is the index of the terminating null byte or the end of file. This also holds true when reading a byte vector (CBOR or MessagePack).</dd></dl>
<p>{The following code shows how a <code><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html" title="exception indicating a parse error ">parse_error</a></code> exception can be caught.,<a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html" title="exception indicating a parse error ">parse_error</a>}</p>
<dl class="section see"><dt>See also</dt><dd>- <a class="el" href="../../de/df2/classnlohmann_1_1detail_1_1exception.html">exception</a> for the base class of the library exceptions </dd>
<dd>
- <a class="el" href="../../d4/d5f/classnlohmann_1_1detail_1_1invalid__iterator.html">invalid_iterator</a> for exceptions indicating errors with iterators </dd>
<dd>
- <a class="el" href="../../da/d1c/classnlohmann_1_1detail_1_1type__error.html">type_error</a> for exceptions indicating executing a member function with a wrong type </dd>
<dd>
- <a class="el" href="../../d2/d67/classnlohmann_1_1detail_1_1out__of__range.html">out_of_range</a> for exceptions indicating access out of the defined range </dd>
<dd>
- <a class="el" href="../../d5/d1b/classnlohmann_1_1detail_1_1other__error.html">other_error</a> for exceptions indicating other library errors</dd></dl>
<dl class="section since"><dt>Since</dt><dd>version 3.0.0 </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l02769">2769</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0ea816ea3521d7109407948cb1b850f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ea816ea3521d7109407948cb1b850f7">&#9670;&nbsp;</a></span>parse_error()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">nlohmann::detail::parse_error::parse_error </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>byte_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>what_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l02810">2810</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae77bd584cb9101140790219af7fec1ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae77bd584cb9101140790219af7fec1ce">&#9670;&nbsp;</a></span>create() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BasicJsonType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html">parse_error</a> nlohmann::detail::parse_error::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d6/d02/structnlohmann_1_1detail_1_1position__t.html">position_t</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>what_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const BasicJsonType &amp;&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>create a parse error exception </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">id_</td><td>the id of the exception </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>the position where the error occurred (or with chars_read_total=0 if the position cannot be determined) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">what_arg</td><td>the explanatory string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html" title="exception indicating a parse error ">parse_error</a> object </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l02782">2782</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

<p class="reference">References <a class="el" href="../../d5/db8/json_8hpp_source.html#l02587">nlohmann::detail::position_t::chars_read_total</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l02664">nlohmann::detail::exception::diagnostics()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l02658">nlohmann::detail::exception::name()</a>, and <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">nlohmann::detail::string</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d5/db8/json_8hpp_source.html#l12420">nlohmann::json_pointer&lt; BasicJsonType &gt;::array_index()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l08414">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_bson_binary()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l08393">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_bson_string()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l09127">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_cbor_binary()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l09032">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_cbor_string()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l09692">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_msgpack_string()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10373">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_ubjson_high_precision_number()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10094">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_ubjson_size_type()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10017">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_ubjson_size_value()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l09963">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_ubjson_string()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10135">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::get_ubjson_value()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10741">nlohmann::detail::parser&lt; BasicJsonType, InputAdapterType &gt;::parse()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l08440">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::parse_bson_element_internal()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l08586">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::parse_cbor_internal()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l09312">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::parse_msgpack_internal()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l25343">nlohmann::basic_json&lt; ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType &gt;::patch()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l08277">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::sax_parse()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10809">nlohmann::detail::parser&lt; BasicJsonType, InputAdapterType &gt;::sax_parse()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l10828">nlohmann::detail::parser&lt; BasicJsonType, InputAdapterType &gt;::sax_parse_internal()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l12825">nlohmann::json_pointer&lt; BasicJsonType &gt;::split()</a>, and <a class="el" href="../../d5/db8/json_8hpp_source.html#l10569">nlohmann::detail::binary_reader&lt; BasicJsonType, InputAdapterType, SAX &gt;::unexpect_eof()</a>.</p>

</div>
</div>
<a id="a90fbaaeeb00838e65b8d04885017ef0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90fbaaeeb00838e65b8d04885017ef0c">&#9670;&nbsp;</a></span>create() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename BasicJsonType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html">parse_error</a> nlohmann::detail::parse_error::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>byte_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>what_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const BasicJsonType &amp;&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l02790">2790</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

<p class="reference">References <a class="el" href="../../d5/db8/json_8hpp_source.html#l02664">nlohmann::detail::exception::diagnostics()</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l02658">nlohmann::detail::exception::name()</a>, <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">nlohmann::detail::string</a>, and <a class="el" href="../../d5/db8/json_8hpp_source.html#l25855">nlohmann::to_string()</a>.</p>

</div>
</div>
<a id="aefe74adeaa48781464ba2fd2ec63d221"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefe74adeaa48781464ba2fd2ec63d221">&#9670;&nbsp;</a></span>position_string()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#a1ed8fc6239da25abcaf681d30ace4985ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> nlohmann::detail::parse_error::position_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d6/d02/structnlohmann_1_1detail_1_1position__t.html">position_t</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l02813">2813</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

<p class="reference">References <a class="el" href="../../d5/db8/json_8hpp_source.html#l02589">nlohmann::detail::position_t::chars_read_current_line</a>, <a class="el" href="../../d5/db8/json_8hpp_source.html#l02591">nlohmann::detail::position_t::lines_read</a>, and <a class="el" href="../../d5/db8/json_8hpp_source.html#l25855">nlohmann::to_string()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a9505aaa1ca943be927eec7cc579592ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9505aaa1ca943be927eec7cc579592ff">&#9670;&nbsp;</a></span>byte</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::size_t nlohmann::detail::parse_error::byte</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>byte index of the parse error </p>
<p>The byte index of the last read character in the input file.</p>
<dl class="section note"><dt>Note</dt><dd>For an input with n bytes, 1 is the index of the first character and n+1 is the index of the terminating null byte or the end of file. This also holds true when reading a byte vector (CBOR or MessagePack). </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l02807">2807</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d3/d9b/namespacenlohmann.html">nlohmann</a></li><li class="navelem"><a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html">detail</a></li><li class="navelem"><a class="el" href="../../d5/d1a/classnlohmann_1_1detail_1_1parse__error.html">parse_error</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
